wayland: Fix a release build warning
authorMatthias Clasen <mclasen@redhat.com>
Tue, 18 Feb 2020 05:40:48 +0000 (00:40 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Fri, 21 Feb 2020 05:51:03 +0000 (00:51 -0500)
gdk/wayland/gdkdevice-wayland.c

index 6ecbfd7317c89a44b8e356b861062bcdaff52bc7..b16cfffb972293cdae8e3346ab7d257e42111618 100644 (file)
@@ -3518,13 +3518,12 @@ tablet_tool_handle_motion (void                      *data,
 {
   GdkWaylandTabletToolData *tool = data;
   GdkWaylandTabletData *tablet = tool->current_tablet;
-  GdkWaylandSeat *seat = GDK_WAYLAND_SEAT (tool->seat);
   GdkEvent *event;
 
   tablet->pointer_info.surface_x = wl_fixed_to_double (sx);
   tablet->pointer_info.surface_y = wl_fixed_to_double (sy);
 
-  GDK_SEAT_NOTE (seat, EVENTS,
+  GDK_SEAT_NOTE (tool->seat, EVENTS,
             g_message ("tablet motion %f %f",
                        tablet->pointer_info.surface_x,
                        tablet->pointer_info.surface_y));